package com.cl.pattern.builder.part1;

/**
 * 具体建造者
 *
 * @Author Small
 * @Date 2020/6/2 14:47
 * @Version 1.0
 **/
public class ConcreteBuilder extends Builder {

    private Product product;
    public ConcreteBuilder() {
        product = new Product();
    }

    @Override
    void drawHead() {
        product.setHead("画一个头");
    }

    @Override
    void drawBody() {
        product.setBody("画一个身体");
    }

    @Override
    void drawHand() {
        product.setHand("画一个手");
    }

    @Override
    void drawFoot() {
        product.setFoot("画一个脚");
    }

    @Override
    Product getProduct() {
        return product;
    }
}
